import request from '@/utils/request'

// 查询试卷列表
export function listKs(query) {
  return request({
    url: '/business/ks/list',
    method: 'get',
    params: query
  })
}

// 查询试卷详细
export function getKs(id) {
  return request({
    url: '/business/ks/' + id,
    method: 'get'
  })
}

// 新增试卷
export function addKs(data) {
  return request({
    url: '/business/ks',
    method: 'post',
    data: data
  })
}

// 修改试卷
export function updateKs(data) {
  return request({
    url: '/business/ks',
    method: 'put',
    data: data
  })
}

// 删除试卷
export function delKs(id) {
  return request({
    url: '/business/ks/' + id,
    method: 'delete'
  })
}
